package com.qf.week1.day02;

import java.util.Scanner;

public class SwitchDemo {
    public static void main(String[] args) {

        System.out.println("请输入");
        Scanner sc = new Scanner(System.in);
         String grade = sc.next();
         grade = grade.toUpperCase();
         switch(grade){

             case"A":
                 System.out.println("好评");
                 break;

             case"B":
                 System.out.println("良好");
                 break;

             case"C":
                 System.out.println("一般");
                 break;

             case"D":
                 System.out.println("差评");
                 break;
             default:
                 System.out.println("输入错误");
         }
    }
}
